const Router = require('koa-router')

const router = new Router()

router.get('/', (ctx, next) => {
  ctx.body = 'hello world add'
})

router.post('/add/:id', (ctx, next) => {
  console.log(ctx.request.body, ctx.params)
  ctx.body = { ok: 200 }
})
module.exports = router
